package org.bigjava.novelplatform.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.bigjava.novelplatform.common.enums.ActionType;
import org.bigjava.novelplatform.common.verifyGroup.Register;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.URL;

import javax.validation.constraints.NotEmpty;
import java.util.Date;

//本章说的用户信息
@Data
public class UserchaptersaysVo {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 昵称,限制为30字符
     */
    @Length(max = 30)
    @NotEmpty(message = "昵称不能为空",groups = {Register.class})
    private String nickName;

    /**
     * 发布时间，插入时自动获取当前时间，无需逻辑处理
     */
    private Date publishTime;

    /**
     * 头像路径
     */
    @URL
    private String headPortraitUrl;

    /**
     * 发布者id
     */
    private Integer addressorId;

    /**
     * 评论,限制200字数
     */
    @Length(max = 200)
    private String content;


    /**
     * 操作类型
     0点赞；1点踩
     */
    private ActionType actionType;



}
